#ifndef DIALOGABOUT_H
#define DIALOGABOUT_H

#include "controls/rotatingdialog.h"

class FTPushButton;
class FTPushButtonIcon;
class FTLabel;
class FTHelpBrowser;
class FTTextArea;

class DialogAbout : public RotatingDialog
{
    Q_OBJECT
public:
    explicit DialogAbout();

private:
    // Open the default browser with a link
    void openUrl( QString );

    // On top we have this:

    // Version label
    FTLabel* version;
    // Author label
    FTLabel* author;
    // Send email to Willy
    FTPushButtonIcon* contact;
    // support label
    FTTextArea* support;

    FTPushButtonIcon* home;
#ifndef CAP_SUPPORTER
    FTPushButtonIcon* paypal;
#endif
    FTPushButtonIcon* forums;

    FTHelpBrowser* help_browser;

    // Close button
    FTPushButton* close;

    QLayout* createHorizontal();
    QLayout* createVertical();

public slots:
    void urlPaypal();
    void urlHomepage();
    void urlWillygardiol();
    void urlForums();

};

#endif // DIALOGABOUT_H
